/*
 * Copyright 2009 Armando Blancas
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package tests.taskgraph.tasks.io;

import javax.persistence.Entity;

/**
 * For reading table 'Titles' from MySql database 'books'.
 * 
 * <p>There are no annotations because we intend to match field names to
 * column names in table books.Titles.
 */
@Entity(name="Titles")
public class BookTitle {

	private String ISBN;
	private String Title;
	private int EditionNumber;
	private String Copyright;
	
	/**
	 * Default constructor.
	 */
	public BookTitle() {
		// do nothing
	}
	
	/**
	 * BookTitle constructor.
	 * 
	 * @param ISBN          The book id.
	 * @param Title         The book title.
	 * @param EditionNumber The edition number.
	 * @param Copyright     The copyright notice.
	 */
	public BookTitle(String ISBN, 
			         String Title, 
			         int EditionNumber, 
			         String Copyright) {
		setISBN(ISBN);
		setTitle(Title);
		setEditionNumber(EditionNumber);
		setCopyright(Copyright);
	}

	/**
	 * @return the iSBN
	 */
	public String getISBN() {
		return ISBN;
	}

	/**
	 * @param isbn the iSBN to set
	 */
	public void setISBN(String isbn) {
		ISBN = isbn;
	}

	/**
	 * @return the title
	 */
	public String getTitle() {
		return Title;
	}

	/**
	 * @param title the title to set
	 */
	public void setTitle(String title) {
		Title = title;
	}

	/**
	 * @return the editionNumber
	 */
	public int getEditionNumber() {
		return EditionNumber;
	}

	/**
	 * @param editionNumber the editionNumber to set
	 */
	public void setEditionNumber(int editionNumber) {
		EditionNumber = editionNumber;
	}

	/**
	 * @return the copyright
	 */
	public String getCopyright() {
		return Copyright;
	}

	/**
	 * @param copyright the copyright to set
	 */
	public void setCopyright(String copyright) {
		Copyright = copyright;
	}
	
}
